-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZEVA-1744: Unit tests for 3 supplementary components #2375
Conversation
Quality Gate passedIssues Measures |
coverageReporters: ['json'], | ||
testEnvironment: "jest-environment-jsdom", | ||
collectCoverageFrom: ["src/**/*.{js,jsx}"], | ||
coverageReporters: ["json", "html", "lcov"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get visual representation of code coverage on local
}, | ||
coveragePathIgnorePatterns: ['node_modules/'], | ||
testPathIgnorePatterns: ["/node_modules/", "/__tests__/test-data/"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can have test-data
folders in any __tests__
dir now
@@ -64,7 +64,8 @@ | |||
"@storybook/addon-storyshots": "^6.1.21", | |||
"@storybook/react": "^6.1.21", | |||
"@testing-library/jest-dom": "^4.2.4", | |||
"@testing-library/react": "^9.4.0", | |||
"@testing-library/react": "^10.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgraded version to get some more utility; however, could not upgrade to latest due to being on React v16
@@ -64,7 +64,8 @@ | |||
"@storybook/addon-storyshots": "^6.1.21", | |||
"@storybook/react": "^6.1.21", | |||
"@testing-library/jest-dom": "^4.2.4", | |||
"@testing-library/react": "^9.4.0", | |||
"@testing-library/react": "^10.0.0", | |||
"@testing-library/user-event": "^14.5.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for testing uploads
This ticket was to improve coverage for our supplementary components.
The 3 components that now have tests allocated to them are: